home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / lang / sbasic02 / test2.b < prev    next >
Encoding:
Text File  |  1994-11-03  |  364 b   |  22 lines

  1. print "This program demonstrates all commands."
  2. for x = 1 to 100
  3. print x, x / 2, x, x*x
  4. next
  5. gosub 300
  6. print "hello"
  7. input h
  8. if h < 11 then goto 200
  9. print 12 - 4 / 2
  10. print 100
  11. 200 a = 100 / 2
  12. if a > 10 then print "This is OK"
  13. print a
  14. print a + 34
  15. input h
  16. print h
  17. input "this is a test ",y
  18. print h+y
  19. end
  20. 300 print "This is a subroutine"
  21. return
  22.